<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"  %>

<html>
<head>
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
     <title>Biblioteca Virtual</title>
    <meta name="keywords" content="" />
    <meta name="description" content="" />
      <link href="../css/civilized.css" rel="stylesheet" type="text/css" />
</head>
<body>
<body>
    <div id="outer">
        <div id="header">
		<h1>Biblioteca Virtual</h1>
		<h2>by m.o.w.a.</h2>
        <div style="text-align:right" ><a href="../index.htm">Salir</a></div>
	</div>
        <div id="menu">
            <ul>
                 <li class="first"><a href="../admin/libros.htm" accesskey="1" title="">Inicio</a></li>
                <li><a href="../admin/libros.htm" accesskey="2" title="">Libros</a></li>
                <li><a href="../admin/servicios.htm" accesskey="3" title="">Servicios</a></li>
                <li><a href="../admin/usuarios.htm" accesskey="4" title="">Usuarios</a></li>
            </ul>
        </div>
        <div id="content">
            <div id="primaryContentContainer">
                <div id="primaryContent">
                
				<h3>Usuarios</h3>
				<blockquote>
                
                 <table>
                  
                    <tr> 
                        <td>
                            <label for="login-text">Nombre :</label>
                        </td>
                        <td ><input type="text" id="login-text2" class="txt"  /></td>
                        <td >Número de Documento :</td>
                        <td ><input type="text" id="login-text"   class="txt" /></td>
                    </tr>
                    <tr> 
                        <td>
                            <label for="login-text">Apellido Paterno:</label>
                        </td>
                        <td ><input type="text" id="login-text3"  class="txt"  /></td>
                        <td >Apellido Materno :</td>
                        <td ><input type="text" id="login-text4"   class="txt" /></td>
                    </tr>
                    <tr> 
                         <td > <label >Estado :</label></td>
                        <td > <select name="ddlCategoria" size="1">
                        <option>--Todos--</option>
                        <option>Activo</option>
                        <option>Inactivo</option>
                        </select></td>
                        <td ></td>
                        <td ><input type="submit" id="search-submit" value="Buscar" style="cursor:pointer"  /></td>
                    </tr>
                   
                </table>
		    </blockquote>
                    <h3>
                       Resultados</h3>
                    <table width="100%">
                        <tr>
                            <th>
                                Codigo
                            </th>
                            <th>
                                Nombre
                            
                            </th>
                             <th>Estado</th>
                            <th></th>
                        </tr>

                       <c:forEach items="${listaUsuarios}" var="obj" varStatus="status"  >

                              <c:choose>
                                  <c:when test="${status.count%2==0}">
                                      <tr class="rowA">
                                  </c:when>
                                  <c:otherwise>
                                      <tr class="rowB">
                                  </c:otherwise>
                                </c:choose>
                            <td>
                                ${obj.idusuario}
                            </td>
                            <td>
                                 ${obj.nombre}, ${obj.apePaterno} ${obj.nombre}
                            </td>
                           
                           <td align="center" valign="middle" style="width:25px">
                                <c:choose>
                                  <c:when test="${obj.activo=='1'}">
                                       <input name="" type="image" src="../images/botones/accept.png"  alt="Activo"/>
                                  </c:when>
                                  <c:otherwise>
                                      <input name="" type="image" src="../images/botones/cancel.png"  alt="Inactivo"/>
                                  </c:otherwise>
                                </c:choose>
                          </td>
                          <td align="center" valign="middle" style="width:25px">
                             <a href="../admin/mantusuario.htm"><input name="" type="image" src="../images/botones/edit.png"  alt="Editar"/></a>
                            
                          </td>
                        </tr>

                       </c:forEach>
                        
                       
                        
                    </table>
                </div>
            </div>
            <div id="secondaryContent">
                <h3>Usuarios</h3>
                <ul>
                    <li><a href="../admin/mantUsuario.htm">Administrar Usuarios</a></li>
                                   
                </ul>
			</div>
        <div class="clear"></div>
	</div>
	<div id="footer">
		<p>Copyright &copy; 2006 m.o.w.a. 2010 </p>
	</div>
    </div>
</body>
</body>
</html>
